package stringday02;
/**
 * String replaceAll(String regex,String s):替换
 *将当前字符串中满足正则表达式(regex)的部分给替换为指定字符(s)
 */
public class ReplaceAllDemo02 {
    public static void main(String[] args) {
        String line = "操你妈妈的吻";
        //将敏感字部分替换为*
        line = line.replaceAll("[操|妈]","*");
        System.out.println(line);
    }
}
